package com.greejoy.score.service;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface HttpService {

    @GET("js/app/getMatchInfo")
    Call<ResponseBody> getMatchInfo(@Query("key") String key);

    @GET("js/app/getPlaceList")
    Call<ResponseBody> getPlaceList(@Query("key") String key);

    @GET("js/app/getScoreInfo")
    Call<ResponseBody> getScoreInfo(@Query("key") String key, @Query("judgeId") Long judgeId);

    @POST("js/app/saveScore")
    @FormUrlEncoded
    Call<ResponseBody> saveScore(@Field("key") String key, @Field("judgeId") Long judgeId, @Field("valueStr") String valueStr);


}
